home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / pcboard / bcmx120.zip / RAND.PPE (.txt) < prev    next >
PCBoard Programming Language Executable  |  1994-06-10  |  984b  |  88 lines

  1. ;------------------------------------------------------------------------------
  2. ;                                                   .ss.
  3. ;                                                   `²²'
  4. ;             .,sS$Ss,,s$  .,sS$$$Ss.  .,sS$Ss,,s$ .ss.  .sSs.
  5. ;           .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
  6. ;           $$$'   .$$$' $$$²Sçsµ²' .$$$'   .$$$'.$$$' .$$$'  `$$b.
  7. ;           $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$'    ;$$$
  8. ;           `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
  9. ;                                    .sS²°$$$²²°"'       d²°'
  10. ;                                  .$$²  .$$'
  11. ;                                  $$$.,d$$'
  12. ;                                  `²S$$S²'
  13. ;------------------------------------------------------------------------------
  14. ; P.P.L.X. 2.OO                          (C)1996 - Lone Runner / AEGiS CoRP'96 
  15. ;------------------------------------------------------------------------------
  16. ; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
  17. ;------------------------------------------------------------------------------
  18.  
  19.     Integer  INTEGER001
  20.     Integer  INTEGER002
  21.     String   STRING001
  22.     String   STRING002
  23.  
  24. ;------------------------------------------------------------------------------
  25.  
  26.     STRING001 = TokenStr()
  27.     Tokenize STRING001
  28.     If (TokCount() <> 2) Then
  29.         PrintLn "ERROR (rand): incorrect number of parameters"
  30.     Endif
  31.     STRING002 = GetToken()
  32.     INTEGER001 = GetToken()
  33.     INTEGER002 = Random(Time())
  34.     INTEGER002 = Random(INTEGER001 - 1) + 1
  35.     If (Exist(STRING002 + String(INTEGER002))) Then
  36.         DispFile STRING002 + String(INTEGER002), 1 + 4
  37.     ElseIf (Exist(PPEPath() + STRING002 + String(INTEGER002))) Then
  38.         DispFile PPEPath() + STRING002 + String(INTEGER002), 1 + 4
  39.     Else
  40.         PrintLn "Error (rand.ppe): cannot find: " + STRING002 + String(INTEGER002)
  41.     Endif
  42.  
  43. ;------------------------------------------------------------------------------
  44. ;
  45. ; Usage report (before postprocessing)
  46. ;
  47. ; ■ Statements used :
  48. ;
  49. ;    5       Goto 
  50. ;    5       Let 
  51. ;    2       PrintLn 
  52. ;    3       If 
  53. ;    2       DispFile 
  54. ;    1       Tokenize 
  55. ;
  56. ;
  57. ; ■ Functions used :
  58. ;
  59. ;    11      +
  60. ;    1       -
  61. ;    1       <>
  62. ;    3       !
  63. ;    2       Random()
  64. ;    1       Time()
  65. ;    5       String()
  66. ;    2       PPEPath()
  67. ;    2       GetToken()
  68. ;    2       Exist()
  69. ;    1       TokenStr()
  70. ;    1       TokCount()
  71. ;
  72. ;------------------------------------------------------------------------------
  73. ;
  74. ; Analysis flags : No flag
  75. ;
  76. ;------------------------------------------------------------------------------
  77. ;
  78. ; Postprocessing report
  79. ;
  80. ;    0       For/Next
  81. ;    0       While/EndWhile
  82. ;    3       If/Then or If/Then/Else
  83. ;    0       Select Case
  84. ;
  85. ;------------------------------------------------------------------------------
  86. ;                 AEGiS Corp - Break the routines, code against the machines!
  87. ;------------------------------------------------------------------------------
  88.